docker stop elasticsearch
docker rm elasticsearch
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e  "discovery.type=single-node" -e "ES_JAVA_OPTS=-Xms64m -Xmx512m" -v $PSScriptRoot/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v $PSScriptRoot/data:/usr/share/elasticsearch/data -v $PSScriptRoot/plugins:/usr/share/elasticsearch/plugins -d elasticsearch:7.6.2 
